import request from '@/utils/request'

export function queryMenus(params) {
  return request({
    url: '/ServiceAuthApi/api/Permissions/QueryPemissions',
    method: 'get',
    params,

  })
}
export function deletePermissions(data) {
  return request({
    url: '/ServiceAuthApi/api/Permissions/DeletePermissions',
    method: 'Delete',
    data,
    headers: {
      'Content-Type': 'application/json'
    },
  })
}

export function updatePermissions(data) {
  return request({
    url: '/ServiceAuthApi/api/Permissions/UpdatePermissions',
    method: 'put',
    data,
    headers: {
      'Content-Type': 'application/json'
    },
  })
}

export function createPermissions(data) {
  return request({
    url: '/ServiceAuthApi/api/Permissions/CreatePermissions',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json'
    },
  })
}
